%{
#include<iostream>
#include<set>
using namespace std;
int nua=0;
int numc=0;
set<long long>a;
%}
ne NAME$
number [0-9]
nu {number}{9}
nf ^{nu}
numbers {number}+
digit {numbers}(\.{numbers})?
%%
{ne} {printf("DY");}
{nf} {printf("201492184");}
{digit} {int i=0;long long b=0;char *c=yytext;for(i=0;*c!='.'&&i<yyleng;i=i+1){b=10*b+(*c-'0');c=c+1;}if(i!=yyleng){c=c+1;int x=(*c-'0');if(x>=5)b=b+1;}b*=2;b=b+201492184;cout<<b;nua++;a.insert(b);}
. {cout<<yytext;}
%%
int main()
{
     yylex();
     numc=a.size();
     printf("%d\t%d\n",nua,numc);
     return 0;
}
int yywrap()
{
 return 1;
